﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/Main.Master" CodeBehind="AddEmployees.aspx.cs" Inherits="Agile_E.AddEmployees" %>

<asp:Content ID="addEmployee" ContentPlaceHolderID="main1" runat="server">
<div>
<h1>Add Employee</h1>
<br />
<table style="text-align:left">
<tr>
<td><asp:Label id="lblEmpID" runat="server" Text="Employee ID:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtEmpID" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVempid" ControlToValidate="txtEmpID" Text="(Required)" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr><td>
<asp:Label id="lbllname" runat="server" Text="Last Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtlname" runat="server" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtlname" Text="(Required)" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="padding-right:10px"><asp:Label id="lblmname" runat="server" Text="Middle Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtmname" runat="server" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblfname" runat="server" Text="First Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtfname" runat="server" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtfname" Text="(Required)" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblPos" runat="server" Text="Position:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtPos" runat="server" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblSuper" runat="server" Text="Supervisor:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtSuper" runat="server" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblWphone" runat="server" Text="Work Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtWphone" runat="server" MaxLength="11" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblcphone" runat="server" Text="Cell Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtcphone" runat="server" MaxLength="11" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lblhphone" runat="server" Text="Home Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txthphone" runat="server" MaxLength="11" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lbldealer" runat="server" Text="Dealership:" Font-Bold="true"></asp:Label></td>
<td><asp:DropDownList ID="ddldealerships" runat="server" AppendDataBoundItems="true" DataSourceID="srcddlDealer"
      DataTextField="Name" DataValueField="Name"  >
      <asp:ListItem Text="--SELECT--" Value="-1"></asp:ListItem>
      </asp:DropDownList>
      
<asp:SqlDataSource ID="srcddlDealer" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>" 
        SelectCommand="Select distinct(Name) from Dealerships"
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>"></asp:SqlDataSource>
</td>
</tr>
</table>
<br /><br />
<table>
<tr><td align="left"><asp:Label ID="lblSpecial" Text="Specialty:" runat="server" Font-Bold="true"></asp:Label></td></tr>
<tr><td>
<asp:TextBox ID="txtSp" runat="server" TextMode="MultiLine"
 Width="500px" Height="200px" Wrap="true"></asp:TextBox></td></tr>
<tr><td><asp:Button id="Button1" runat="server" Text="Save" Width="55px" 
        onclick="Button1_Click" OnClientClick="return confirm('Add this Employee?');"/>
</td></tr>
</table>
<br />
</div>
</asp:Content>
